<h1>教师信息</h1>

<table>
  <tr>
    <th>姓名</th>
    <th>简介</th>
  </tr>

<% for teacher in @teachers %>
  <tr>
    <td><%=h teacher.tname %></td>
    <td><%=h teacher.tresume %></td>
    <td><%= link_to '详细', teacher %></td>
    <td><%= link_to '编辑', edit_teacher_path(teacher) %></td>
    <td><%= link_to '删除', teacher, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to '添加教师', new_teacher_path %>
